import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import mue from '../views/mue.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/mue'
  },
  {
    path: '/mue',
    name: 'mue',
    component: mue,
    children: [
      {
        path: '/mue/one',
        name: 'one',
        component: () => import('../views/one.vue')
      },
      {
        path: '/mue/two',
        name: 'two',
        component: () => import('../views/two.vue')
      }
    ]

  },

  {
    path: '/home',
    name: 'home',
    component: HomeView,
  },

  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue')
  },

  {
    path: '/anquan',
    name: 'anquan',
    component: () => import('../views/anquan.vue')
  },
  {
    path: '/item',
    name: 'item',
    component: () => import('../views/item.vue')
  },
  {
    path: '/table',
    name: 'table',
    component: () => import('../views/table.vue')
  },



]

const router = new VueRouter({
  routes
})

export default router
